
///请求成功
const LOGIN_REJECT = 304;
///登陆超时
const SUCCESS_CODE = 200;

class BaseResponse<T>{

	T? data;
	late int code;
	late String message;

	BaseResponse.baseResponseEntityFromJson(Map<String, dynamic> json){
		if (json['code'] != null) {
			this.code = json['code'] is String
					? int.tryParse(json['code'])
					: json['code'].toInt();
		}
		if (json['message'] != null) {
			this.message = json['message'].toString();
		}
	}
}
